﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MT042 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;

    [Description("Region")]
    public Tag304 Region_304
    {
      get
      {
        return new Tag304((SwiftElement) this, 0, (SwiftDefinitionElement) MT042.U0002);
      }
    }

    [Description("Region")]
    public Tag304 Tag304_Region
    {
      get
      {
        return this.Region_304;
      }
    }

    public MT042()
      : base(true)
    {
    }

    public MT042(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT042.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT042.MessageDefinition = new SwiftMessageDefinition("MT042", "Cut-off Times List Request");
      MT042.U0002 = new SwiftTagDefinition("Region_304", "Region");
      MT042.U0002.TagName = "{304:";
      MT042.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT042.U0002);
    }
  }
}
